@echo off

rem because clr locks files 
copy bmerge.exe bmerge.copy.exe

rem bootstrap
mkdir boot
bmerge -e bmerge.copy.exe -i template.exe;Mono.Cecil.dll;Vestris.ResourceLib.dll;CommandLine.dll -o .\boot\bmerge.exe --inherit-version --console-application --bootstrap 

rem bootstrap again
mkdir build 
boot\bmerge -e bmerge.exe -i template.exe;Mono.Cecil.dll;Vestris.ResourceLib.dll;CommandLine.dll -o .\build\bmerge.exe --inherit-version --console-application --bootstrap 
